package com.yanxibao.service;

import com.yanxibao.bean.Comments;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yanxibao.common.Result;
import com.yanxibao.dto.CommentsUserDTO;
import io.swagger.models.auth.In;

import java.util.List;

/**
* @author kongke
* @description 针对表【yxb_comments(评论表)】的数据库操作Service
* @createDate 2023-11-19 20:12:45
*/
public interface CommentsService extends IService<Comments> {

    Result<Comments> addComments(Comments comments);

    Result<List<CommentsUserDTO>> getCommentsList(Integer blogId);

    Result<Boolean> deleteComments(Integer id);

    Result<Integer> likes(Integer id);

}
